package nowCoder;

import java.util.Scanner;

public class HJ61 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        System.out.println(sum(n, m, n));
    }
    public static int sum(int n, int m, int up){
        if (n == 0){
            return 1;
        }
        if (m == 1){
            if (n <= up)
                return 1;
            else
                return 0;
        }
        int s = 0;
        for (int i = 0; i < n; i++) {
            if (n - i <= up)
                s+=sum(i,m-1,n-i);
        }
        return s;
    }
}
